package com.itheima.service.Impl;

import com.github.pagehelper.PageInfo;
import com.itheima.domain.User;
import com.itheima.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {

@Autowired
private UserService userService;

    //查询所有

    @Override
    public List<User> findAll() {
     return  userService.findAll();
    }

    //
    @Override
    public PageInfo<User> findByPage(int currentPage, int pageSize) {
        return null;
    }

    @Override
    public User findById(Integer id) {
        return null;
    }

    @Override
    public int save(User user) {
        return 0;
    }

    @Override
    public int update(User user) {
        return 0;
    }

    @Override
    public int delete(Integer id) {
        return 0;
    }

    @Override
    public User login(String username, String password) {
        return null;
    }
}
